using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using SolarWinds.Input;

namespace SolarWinds.Screens
{
    public class ShipSelectionScreen : Screen
    {
        private IInputManagerService mInputManager;

        public ShipSelectionScreen(Game game) 
            : base(game)
        {
        }

        private readonly string[] mAvailableShips = {"ship02", "ship01", "box"};
        private int mCurrentShipIndex;

        public override void Initialize()
        {
            base.Initialize();

            mInputManager = (IInputManagerService) 
                            Game.Services.GetService(typeof (IInputManagerService));

            mInputManager.Keyboard.KeyPressed += KeyboardKeyPressed;

            //mCamera = new EulerAngleCamera(Game);
            //mCamera.Position = new Vector3(45.0f, 45.0f, 45.0f);
            //mSceneManager.ActiveCamera = mCamera;
            //Components.Add(mCamera);

        }

        private void KeyboardKeyPressed(object sender, KeyEvent e)
        {
            if (e.Key == Keys.Right)
            {
                mCurrentShipIndex++;
            }
            else if (e.Key == Keys.Left)
            {
                mCurrentShipIndex--;
            }

        }
    }
}